<div class="block_head">
    <div class="bheadl"></div>
    <div class="bheadr"></div>
    <h2>Clientes</h2>
<ul>
    <li><?php echo $this->Html->link('ADICIONAR','/projetos/add/'); ?></li>
</ul>
</div>
<div class="block_content">
    <table width="100%" cellspacing="0" cellpadding="0">

        <tbody>
            <tr>
                <!--td width="10"><input type="checkbox" class="check_all"></td-->
                <th><?php echo $paginator->sort('Nome', 'Projeto.nome') ?></th>
                <th><?php echo $paginator->sort('Cliente', 'Cliente.nome') ?></th>
                <th><?php echo $paginator->sort('Telefone', 'Cliente.telefone') ?></th>
                <th><?php echo $paginator->sort('Status', 'Projeto.status') ?></th>
                <td>&nbsp;</td>
            </tr>
            <?php foreach ($projetos as $projeto) {
            ?>
                <tr>
                    <!--td><input type="checkbox"></td-->
                    <td><?php echo $this->Html->link($projeto['Projeto']['nome'],'/projetos/view/'.$projeto['Projeto']['id']); ?></td>
                    <td><?php echo $projeto['Cliente']['nome']; ?></td>
                    <td><?php echo $projeto['Cliente']['telefone']; ?></td>
                    <td><?php echo $projeto['Projeto']['status']; ?></td>
                <td class="delete">
                    <a href="<?php echo $this->Html->url('/projetos/edit/'); ?><?php echo $projeto['Projeto']['id']; ?>">Editar
                    </a>
                </td>
            </tr>
            <?php } //foreach clientes  ?>
        </tbody>
    </table>
    <?php echo $this->Element('pagination'); ?>
</div>
